package starter

import (
	"fmt"
	"net/http"

	"cashway.com/cis/assistant/config"
	"github.com/sirupsen/logrus"
)

func RunServe() {
	address := fmt.Sprintf("%s:%d", config.Config.Domain, config.Config.Port)
	logrus.Infof("server start at: %s.", address)
	err := http.ListenAndServe(address, nil)
	if err != nil {
		logrus.Fatal("http.ListenAndServe: ", err)
	}
}
